package com.coltsmedia.RichmondHighNews;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.actionbarsherlock.app.SherlockActivity;
import com.actionbarsherlock.view.MenuItem;

public class CreditsActivity extends SherlockActivity
{
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.credits_layout);
        getActionBar().setDisplayHomeAsUpEnabled(true);

        loadWebView3();
    }


    private void loadWebView3() {

        String content2 = "http://coltsmedia.weebly.com/credits.html";

        WebView schoolView = (WebView) findViewById(R.id.credits);

        schoolView.getSettings().setJavaScriptEnabled(true);
        schoolView.setBackgroundColor(Color.parseColor("#000000"));
        schoolView.loadUrl(content2);
        schoolView.setWebViewClient(new WebViewClient());
    }


    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (item.getItemId() == android.R.id.home) {
            NavUtils.navigateUpTo(this, new Intent(this, MainMenuActivity.class));
            return true;
        }

        return super.onOptionsItemSelected(item);
    }




}
